package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * app更新表
 * </p>
 *
 * @author quwan
 * @since 2022-01-14
 */
@TableName("t_app_version")
@ApiModel(value = "AppVersion对象", description = "app更新表")
public class AppVersion implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("app版本code")
    private String version;

    @ApiModelProperty("1-Android,2-ios")
    private Integer systemType;

    @ApiModelProperty("类型：1-趣单,2-")
    private Integer appType;

    @ApiModelProperty("下载链接")
    private String downloadUrl;

    @ApiModelProperty("是否强制升级:1-是，2-否")
    private Integer ifForceUpgrade;

    @ApiModelProperty("更新说明")
    private String upgradeDesc;

    @ApiModelProperty("状态:0-失效,1-生效")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人")
    private Long createUserId;

    @ApiModelProperty("上次修改时间")
    private LocalDateTime lastModifyTime;

    @ApiModelProperty("上次修改人")
    private Long lastModifyUserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
    public Integer getSystemType() {
        return systemType;
    }

    public void setSystemType(Integer systemType) {
        this.systemType = systemType;
    }
    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }
    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }
    public Integer getIfForceUpgrade() {
        return ifForceUpgrade;
    }

    public void setIfForceUpgrade(Integer ifForceUpgrade) {
        this.ifForceUpgrade = ifForceUpgrade;
    }
    public String getUpgradeDesc() {
        return upgradeDesc;
    }

    public void setUpgradeDesc(String upgradeDesc) {
        this.upgradeDesc = upgradeDesc;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(LocalDateTime lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
    public Long getLastModifyUserId() {
        return lastModifyUserId;
    }

    public void setLastModifyUserId(Long lastModifyUserId) {
        this.lastModifyUserId = lastModifyUserId;
    }

    @Override
    public String toString() {
        return "AppVersion{" +
            "id=" + id +
            ", version=" + version +
            ", systemType=" + systemType +
            ", appType=" + appType +
            ", downloadUrl=" + downloadUrl +
            ", ifForceUpgrade=" + ifForceUpgrade +
            ", upgradeDesc=" + upgradeDesc +
            ", status=" + status +
            ", createTime=" + createTime +
            ", createUserId=" + createUserId +
            ", lastModifyTime=" + lastModifyTime +
            ", lastModifyUserId=" + lastModifyUserId +
        "}";
    }
}
